/*
 * @Descripttion:
 * @version: 资产管理
 * @Author: ada.wu
 * @Date: 2023-10-30 16:11:30
 * @LastEditors: ada.wu
 * @LastEditTime: 2023-11-05 20:07:11
 */
/**
 * @name: 资产管理字段
 * @param {*}
 * @return {*}
 */

import {mapValue} from '@/utils/EsCommon';

export function liveTaskParams() {
  return {
    // recordIds: [],
    ClassDay: "",
    ClassId: null,
    StartTime: "",
    EndTime: "",
    TeacherId: null,
    CourseId: null,
    AcademyId: null,
    MajorId: null,
    CampusId: null,
    BuildingId: null,
    RoomId: null,
    // "userId": 1,//创建人，当前登录账号id，区别老师自己创建还是管理员创建
    Note: "",
    TaskType: 1, //TaskType字段1、按节次建立的排程，2、自定义的排程
    interactRoom: [], //互动教室
    IsRecordTask: 1,
    RecordIp: "",
    IsLiveTask: 2,
    enable: 1,
  }
}
export function taskForm() {
  return {
    // recordIds: [],
    id: null,
    ClassDay: "",
    ClassId: null,
    StartTime: "",
    EndTime: "",
    TeacherId: null,
    CourseId: null,
    AcademyId: null,
    MajorId: null,
    CampusId: null,
    BuildingId: null,
    RoomId: null,
    Note: "",
    TaskType: 1, //TaskType字段1、按节次建立的排程，2、自定义的排程
    IsRecordTask: 1,
    IsLiveTask: 2,
    RecordIds: '0,1,2,3,4,100',
    LiveIds: '0,1,2,3,4,100',
    enable: 1,
    liveTaskRole:undefined,
    interactRoom:[]
  }
}

export const LIVE_TASK_TYPE = {
  1: '互动直播',
  2: '普通直播',
  0: '否',
}

export const liveTaskTypeList = mapValue(LIVE_TASK_TYPE);
